package com.liyuhan.service.impl;

import com.liyuhan.dao.UserDao;
import com.liyuhan.entity.User;
import com.liyuhan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 李宇寒
 * Description:
 * 2019/6/23 0023 下午 9:00.
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public List<User> queryAllUsers() {
        return userDao.findAll();
    }
}
